﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
 <asp:Content ID="Content1" ContentPlaceHolderID="cphMeta" runat="server">
 <script type="text/javascript" src="/js/slideplayer/dk_sliderplayer.js"></script>
 </asp:Content> 
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> 
    <div id="content" class="ovfl">
        <div class="side fl">
            <div class="s_box sb_1">
                <div class="s_box_top">
                    <img src="/images/14.gif" alt="" /></div>
                <ul>
                    <%=Html.Action("Announce","Home") %>
                </ul>
            </div>
            <div class=" sb_2">
                <img src="/images/16.gif" alt="" /> <a href="/"><img src="http://img2.imredwine.com/uploads/20110106/634299190612500000.jpg" /></a>
                  <a href="/product/item/100"> <img src="/images/ad.gif" alt="意大利费拉利红酒" /></a>  
            </div>
           
            <div class="s_box sb_1">
                <h2 >
                    红酒知识</h2>
                <ul>
                     <%=Html.Action("Article", "Home", new { sort = 1 })%>    
                </ul>
            </div>
            <div class="s_box sb_1">
                <h2  >
                    红酒文化</h2>
                <ul>
                    <%=Html.Action("Article", "Home", new { sort = 3 })%>
                </ul>
            </div>           
            
        </div>
        <div class="main fr">
            <div class="ad">
               <%=Html.Action("slideplay","home") %>
             </div>
            <div class="ct_1 ovfl">
                <div class="fl newPrd">
                    <h2 class="title1">
                        本季新品<a href="/product" class="more">更多</a></h2>
        <% IList<Product> newproducts = (ViewData["newproducts"] as IEnumerable<Product>).ToList();%>
                    <div class="newPrd_bd ovfl">
                        <div class="fl">
                            <dl>
                                <dt>
                                   <%=Html.ActionImageLink(newproducts[0].ThumbImageUrl, "item", "product", new { id = newproducts[0].Id }, null)%>
                                 </dt>
                                <dd>                                   
                                    <%=Html.ActionLink(newproducts[0].ProductName, "item", "product", new { id = newproducts[0].Id }, null)%>
                                   </dd>
                                <dd>
                                    <del>市场价：￥<%=newproducts[0].Price %></del>
                                </dd>
                                <dd>
                                     <i>商城价：￥<%=newproducts[0].ShopPrice %></i>
                                </dd>
                            </dl>
                        </div>
                        <div class="fr">
                            <table class="tb_top">
                                <tr>
                                    <td>
                                       <%=Html.ActionLink(newproducts[1].ProductName,"item","product",new{id=newproducts[1].Id},null) %><br />
                                        <del>市场价：￥<%=newproducts[1].Price %></del><br />
                                        <i>商城价：￥<%=newproducts[1].ShopPrice %></i>
                                    </td>
                                    <td >
                                         <%=Html.ActionImageLink(newproducts[1].ThumbImageUrl, "item", "product", new { id = newproducts[1].Id }, null)%>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td>
                                       <%=Html.ActionLink(newproducts[2].ProductName, "item", "product", new { id = newproducts[2].Id }, null)%><br />
                                        <del>市场价：￥<%=newproducts[2].Price %></del><br />
                                        <i>商城价：￥<%=newproducts[2].ShopPrice %></i>
                                    </td>
                                    <td >
                                         <%=Html.ActionImageLink(newproducts[2].ThumbImageUrl, "item", "product", new { id = newproducts[2].Id }, null)%>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="fr newPrd">
                    <h2 class="title1">
                        商城推荐<a href="/product" class="more">更多</a></h2>
         <% IList<Product> hotproducts = (ViewData["hotproducts"] as IEnumerable<Product>).ToList();%>
                    <div class="newPrd_bd ovfl">
                      <div class="fl">
                            <dl>
                                <dt>
                                   <%=Html.ActionImageLink(hotproducts[0].ThumbImageUrl, "item", "product", new { id = hotproducts[0].Id }, null)%>
                                 </dt>
                                <dd>                                   
                                    <%=Html.ActionLink(hotproducts[0].ProductName, "item", "product", new { id = hotproducts[0].Id }, null)%>
                                   </dd>
                                <dd>
                                    <del>市场价：￥<%=hotproducts[0].Price%></del>
                                </dd>
                                <dd>
                                     <i>商城价：￥<%=hotproducts[0].ShopPrice%></i>
                                </dd>
                            </dl>
                        </div>
                        <div class="fr">
                             <table class="tb_top">
                                <tr>
                                    <td>
                                       <%=Html.ActionLink(hotproducts[1].ProductName, "item", "product", new { id = hotproducts[1].Id }, null)%><br />
                                        <del>市场价：￥<%=hotproducts[1].Price%></del><br />
                                        <i>商城价：￥<%=hotproducts[1].ShopPrice%></i>
                                    </td>
                                    <td>
                                         <%=Html.ActionImageLink(hotproducts[1].ThumbImageUrl, "item", "product", new { id = hotproducts[1].Id }, null)%>
                                    </td>
                                </tr>
                            </table>
                            <table>
                                <tr>
                                    <td>
                                       <%=Html.ActionLink(hotproducts[2].ProductName, "item", "product", new { id = hotproducts[2].Id }, null)%><br />
                                        <del>市场价：￥<%=hotproducts[2].Price%></del><br />
                                        <i>商城价：￥<%=hotproducts[2].ShopPrice%></i>
                                    </td>
                                    <td>
                                         <%=Html.ActionImageLink(hotproducts[2].ThumbImageUrl, "item", "product", new { id = hotproducts[2].Id }, null)%>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
           <%=Html.Action("GetProductByCid", new { cid = 13 })%>
           <%=Html.Action("GetProductByCid", new { cid = 11 })%>
           <%=Html.Action("GetProductByCid", new { cid = 14 })%>
           <%=Html.Action("GetProductByCid", new { cid = 16 })%>
        </div>
    </div>
<div class="occasion">
<a href="/occasion?oid=1"><img alt="新手试喝" src="http://img2.imredwine.com/uploads/20110107/634300041539062500.jpg" /></a>
<a href="/occasion?oid=2">
<img alt="婚庆用酒" src="http://img1.imredwine.com/uploads/20110107/634300041518437500.jpg" />
</a>
<a href="/occasion?oid=3"><img alt="礼节拜访" src="http://img2.imredwine.com/uploads/20110107/634300041529843750.jpg" /></a>
<a href="/occasion?oid=4">
<img alt="团圆小酌" src="http://img2.imredwine.com/uploads/20110107/634300041533750000.jpg" /></a>

<a href="/occasion?oid=5"><img alt="商务宴请" src="http://img2.imredwine.com/uploads/20110107/634300041544843750.jpg" /></a>
</div>
</asp:Content>
